﻿@using Webdiyer.WebControls.Mvc
@model PagedList<Dyd.BusinessMQ.Domain.Model.tb_datanode_model>      

 <table>
    <tr>
@*        <th>id</th>*@
        <th>分区编号</th>
        <th>IP</th>
        <th>用户名</th>
        <th>密码</th>
        <th>操作</th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
@*            <td>@item.id</td>*@
            <td>@XXF.BaseService.MessageQuque.BusinessMQ.SystemRuntime.PartitionRuleHelper.PartitionNameRule(item.datanodepartition)</td>
            <td>@item.serverip</td>
            <td>
               @item.username
            </td>
            <td>***********</td>
            <td>
                 <a href="@Url.Action("Update", "Node", new { id = @item.id })">修改</a>
                <a target="_blank" href="@Url.Action("Index", "Partition", new { nodeId=@item.datanodepartition})">相关表分区</a>
                <input type="button" value="删除" onclick="Delete('@item.id')" />
            </td>
        </tr>
    }
</table>
<div class="total pt10">
    <div class="fl">共<em>@Model.TotalPageCount</em>页<em>@Model.TotalItemCount</em>条记录，当前为第<em>@Model.CurrentPageIndex</em>页</div>
    @Html.Pager(Model,new PagerOptions{PageIndexParameterName = "pageIndex",ShowPageIndexBox = true,PageIndexBoxType = PageIndexBoxType.TextBox, CssClass="mvcPager"})
</div>